<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Ubike - 专业自行车及滑板车外贸平台 | 中国优质产品出口</title>
    <meta name="description" content="Ubike专业提供高品质自行车、电动滑板车等运动产品外贸服务。中国制造，全球品质，一站式采购解决方案。">
    <meta name="keywords" content="自行车,电动滑板车,外贸,中国制造,运动器材,批发,出口">
    <meta name="author" content="Ubike">
    <meta name="robots" content="index, follow">
    <link rel="canonical" href="https://ubike.com">
    
    <!-- Open Graph Meta Tags -->
    <meta property="og:title" content="Ubike - 专业自行车及滑板车外贸平台">
    <meta property="og:description" content="中国优质自行车、电动滑板车等运动产品外贸服务">
    <meta property="og:type" content="website">
    <meta property="og:url" content="https://ubike.com">
    <meta property="og:image" content="/static/tp/Logo.png">
    <meta property="og:site_name" content="Ubike">
    
    <!-- Twitter Card Meta Tags -->
    <meta name="twitter:card" content="summary_large_image">
    <meta name="twitter:title" content="Ubike - 专业自行车及滑板车外贸平台">
    <meta name="twitter:description" content="中国优质自行车、电动滑板车等运动产品外贸服务">
    <meta name="twitter:image" content="/static/tp/Logo.png">
    
    <!-- Schema.org Markup -->
    <script type="application/ld+json">
    {
        "@context": "https://schema.org",
        "@type": "Organization",
        "name": "Ubike",
        "url": "https://ubike.com",
        "logo": "https://ubike.com/static/tp/Logo.png",
        "description": "专业自行车及滑板车外贸平台",
        "contactPoint": {
            "@type": "ContactPoint",
            "email": "h3444850160@gmail.com",
            "contactType": "customer service"
        }
    }
    </script>
    
    <link rel="stylesheet" href="/static/css/style.css">
    <link rel="stylesheet" href="https://cdn.bootcdn.net/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <script src="/static/js/gallery-api.js"></script>
    <script src="/static/js/dynamic-gallery.js"></script>
</head>
<body>
    <!-- 头部区域 -->
    <header class="header">
        <div class="wrap">
            
            
            <!-- 导航菜单 -->
            <nav class="main-nav">
                <div class="nav-container">
                    <div class="logo">
                        <a href="/">
                            <img id="siteLogo" src="/static/tp/Logo.png" alt="ubike" loading="lazy">
                        </a>
                    </div>

                    <ul class="nav-menu">
                        <li class="active"><a href="/">首页</a></li>
                        <li> <a href="/about">关于我们 </a></li>
                        <li>
                            <a href="#" onclick="alert('特色服务页面正在开发中...')">特色服务 <i class="fas fa-chevron-down"></i></a>
                            <ul class="dropdown">
                                <li><a href="#" onclick="alert('产品定制页面正在开发中...')">产品定制</a></li>
                                <li><a href="#" onclick="alert('物流配送页面正在开发中...')">物流配送</a></li>
                            </ul>
                        </li>
                        <li>
                            <a href="/products">产品图集</a>
                        </li>
                        <li>
                            <a href="/blog">博客</a>
                        </li>
                        <li>
                            <a href="/contact">联系我们</a>
                        </li>
                    </ul>
                    <div class="nav-right">
                        <!-- 语言切换器 -->
                        <user-language-switcher></user-language-switcher>
                        
                        <div class="search-box">
                            <input type="text" placeholder="搜索...">
                            <button><i class="fas fa-search"></i></button>
                        </div>
                        <div class="contact-info">
                            <span class="email"><i class="fas fa-envelope"></i> h3444850160@gmail.com</span>
                        </div>
                    </div>
                </div>
            </nav>
        </div>
    </header>

    <!-- 轮播图区域 -->
    <div id="carouselExample" class="carousel">
        <div class="carousel-inner" id="carouselInner">
            <!-- 轮播图将通过JavaScript动态加载 -->
            <div class="carousel-item active">
                <img src="/static/tp/2a8ff2dc-e9ef-426d-b1e8-a0fe7470a1a2.jpg" alt="加载中...">
                <div class="carousel-caption">
                    <h2>正在加载轮播图...</h2>
                    <p>请稍候</p>
                </div>
            </div>
        </div>
        <!-- 控制按钮 -->
        <button class="carousel-control-prev">
            <span class="carousel-control-prev-icon"></span>
        </button>
        <button class="carousel-control-next">
            <span class="carousel-control-next-icon"></span>
        </button>
    </div>

    <!-- 特色服务区域 -->
    <section class="features">
        <div class="wrap">
            <h2 class="section-title">我们的特色</h2>
            <div class="features-grid">
                <div class="feature-item">
                    <i class="fas fa-bicycle"></i>
                    <h3>自行车</h3>
                    <p>严选高性能自行车，精选优质配件，展现中国自行车的独特魅力</p>
                </div>
                <div class="feature-item">
                    <img src="/static/tp/生成滑板车图标.png" alt="滑板车" class="feature-icon">
                    <h3>滑板车</h3>
                    <p>电动滑板车，享受滑板乐趣，城市代步的好助手。</p>
                </div>
                <div class="feature-item">
                    <img src="/static/tp/tiexin.png" alt="贴心服务" class="feature-icon">
                    <h3>贴心服务</h3>
                    <p>训练有素的服务团队，为您提供周到细致的专业服务</p>
                </div>
                <div class="feature-item">
                    <i class="fas fa-cogs"></i>
                    <h3>私人定制</h3>
                    <p>根据您的特殊需求，提供个性化的产品定制和售后服务</p>
                </div>
            </div>
        </div>
    </section>

    <!-- 精选产品展示 -->
    <section class="featured-dishes">
        <div class="wrap">
            <h2 class="section-title">严选</h2>
            <div class="dishes-grid">
                <div class="dish-card">
                    <img src="/static/tp/严选1.jpg" alt="自行车">
                    <div class="dish-info">
                        <h3>高性能自行车</h3>
                        <p>严选高性能自行车，精选优质配件，展现中国自行车的独特魅力</p>
                    </div>
                </div>
                <div class="dish-card">
                    <img src="/static/tp/严选2.jpg" alt="滑板车">
                    <div class="dish-info">
                        <h3>城市轻骑</h3>
                        <p>经典造型，舒适坐垫，骑行也是种格调</p>
                    </div>
                </div>
                <div class="dish-card">
                    <img src="/static/tp/严选山地车.jpg" alt="山地车">
                    <div class="dish-info">
                        <h3>专业山地车</h3>
                        <p>全地形轮胎，减震耐用，征服复杂路况，展现卓越性能</p>
                    </div>
                </div>
                <div class="dish-card">
                    <img src="/static/tp/严选童车.jpg" alt="童车">
                    <div class="dish-info">
                        <h3>儿童自行车</h3>
                        <p>安全可靠的儿童自行车，专为小朋友设计，骑行更安心</p>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- 关于我们预览 -->
    <section class="about-preview">
        <div class="wrap">
            <div class="about-content">
                <div class="about-text">
                    <h2>关于我们</h2>
                    <p>2025年，【ubike】从"优质生活触手可及"的初心出发，成为专注于体育运动的电商。</p>
                    <p>我们严选中国100余家优质供应商，从源头把控产品质量，降低购物压力，实用好物承诺"正品保障+3年售后"，只为解决您"选品难、怕踩坑"的购物痛点。</p>
                    <a href="/about" class="btn">了解更多</a>
                </div>
                <div class="about-image">
                    <img src="/static/tp/关于我们.png" alt="关于我们">
                </div>
            </div>
        </div>
    </section>

    <!-- 页脚 -->
    <footer class="footer">
        <div class="wrap">
            <div class="footer-content">
                <div class="footer-section">
                    <h3>联系我们</h3>
                    <p><i class="fas fa-map-marker-alt"></i> 河北邢台</p>
                    <p><i class="fas fa-envelope"></i> h3444850160@gmail.com</p>
                </div>
                <div class="footer-section">
                    <h3>营业时间</h3>
                    <p>7x24小时营业</p>
                </div>
                <div class="footer-section">
                    <h3>快速链接</h3>
                    <ul>
                        <li><a href="/about">关于我们</a></li>
                        <li><a href="{{ url_for('contact') }}">联系我们</a></li>
                        <li><a href="/blog">最新资讯</a></li>
                        <li><a href="/contact">联系我们</a></li>
                    </ul>
                </div>
                <div class="footer-section">
                    <h3>关注我们</h3>
                    <div class="social-links">
                        <a href="#"><i class="fab fa-weixin"></i></a>
                        <a href="#"><i class="fab fa-weibo"></i></a>
                        <a href="#"><i class="fab fa-instagram"></i></a>
                        <a href="#"><i class="fab fa-tiktok"></i></a>
                    </div>
                </div>
            </div>
            <div class="footer-bottom">
                <p>© 2025 ubike. 保留所有权利. | 备案号：黑ICP备20250001号</p>
            </div>
        </div>
    </footer>

    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
    <script src="/static/js/script.js"></script>
    
    <script>
        // 页面加载时检查登录状态
        document.addEventListener('DOMContentLoaded', function() {
            checkLoginStatus();
        });
        
        // 检查登录状态
        function checkLoginStatus() {
            const authButtons = document.getElementById('authButtons');
            const userInfo = document.getElementById('userInfo');
            const userName = document.getElementById('userName');
            
            // 从localStorage获取用户信息
            const userEmail = localStorage.getItem('userEmail');
            
            if (userEmail) {
                // 用户已登录
                authButtons.style.display = 'none';
                userInfo.style.display = 'flex';
                userName.textContent = userEmail.split('@')[0]; // 显示用户名（邮箱前缀）
            } else {
                // 用户未登录
                authButtons.style.display = 'flex';
                userInfo.style.display = 'none';
            }
        }
        
        // 退出登录
        function logout() {
            localStorage.removeItem('userEmail');
            localStorage.removeItem('rememberMe');
            window.location.href = '/';
        }
    </script>
    
    <!-- 语言切换组件 -->
    <script src="/static/js/language-switcher.js"></script>
</body>
</html>